Repository navigation
Give dev builds stable declaration keys - #99
Draft
devagrawal09 wants to merge 34 commits into
Draft
devagrawal09 wants to merge 34 commits into
devagrawal09 wants to merge 34 commits into
Conversation
… its line. `e as T` is TypeScript's assertion: erased where the program runs, kept in the projection. A statement-bodied arrow that fails to parse is no longer re-read as a record, which blamed the handler's `let` with JS_LOCAL.
`source open := false` is already a boolean. Inside `{if open}` the read is `true`, and `open := false` was checked against that. The projection keeps the slot's type and checks the write against it.
The projection checks the import against the declaration, so a ref parameter or result is that type and not the accessor the implementation is written with. The compiled import is unchanged.
The read happens when the handler runs, and the branch may no longer hold. Snapshot into a local and narrow that. A check inside the handler still narrows its own snapshot.
…s an error. CSS-2 already scopes a stylesheet to its own view, so Row stayed unstyled with no warning. STYLE_SCOPE names the other component and the fix: its own style, or a class map.
…has none. n++ in a handler was reported as a generic parse error once the statement reading won outright. The expression reading's ASSIGNMENT hint is kept, and JS_LOCAL from re-reading the body as a record is not.
NoteList's stylesheet does not reach Row (CSS-2). .when and td were pruned; they belong on Row.
…eeps the value. `out := s as Status` evaluated to undefined: the oracle's expression walk had no case for `as`. The checker walks through it too, so the read is still the operand.
…rt type. The projection aliases the other declare namespace, not the sibling .ts.
The model marks that region shadowed by the inner one, so the map can draw it.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #98; review only the last 5 commits:
5b280a5Key dev declarations and expose their resolved model0c54e01Hydrate a dev client against non-dev server output81b0c7dPreserve module keys in non-bundled loweringad7d6deDo not allocate foreign observation memos during hydrationc700955Wait for server function frames in the SSR runnerWhat and why
Builds on the language fixes. Give dev sources, equations and actions stable keys rooted at the project path. The runtime uses those keys to name Solid nodes and attribute writes, action runs and boundary state. The resolved model adds
key, viewoutlineanddeadTyped; the Node-API addsapp(…, dev, root)andmodel().Vite adds an optional dev-client registration hook only if
@reactivescript/map/liveresolves from the project. No map implementation or hot replacement is included here. The runtime exports separate development and production builds. Dev boundary tracing uses an ownerless root so it does not consume a Solid hydration ID. The SSR runner also waits for RPC-backed frames instead of assuming that a Solid flush completes the HTTP round trip.Compatibility
The Node-API changes are additive. Production compiler output is unchanged from the language branch. Production runtime exports no longer include dev instrumentation or reference-only error stubs; applications can still inject an API.
Verification
rxc appagainst the language branchrxc appagainst upstream main, using the updated example treerxc appagainst upstream main, using the original example tree./apiprecedence change@solidjs/vite-plugin3.0.1; no__RX_orrx:RX_DEV=1runs.S-sf-1also passed in isolation in both modes.Questions for Ryan